package com.ruoyi.system.mapper;

import java.util.List;
import com.ruoyi.system.domain.Customer;
import org.springframework.stereotype.Repository;

/**
 * 顾客详情Mapper接口
 * 
 * @author Eugene
 * @date 2023-04-14
 */
@Repository
public interface CustomerMapper 
{
    /**
     * 查询顾客详情
     * 
     * @param id 顾客详情主键
     * @return 顾客详情
     */
    public Customer selectCustomerById(Long id);

    /**
     * 查询顾客详情列表
     * 
     * @param customer 顾客详情
     * @return 顾客详情集合
     */
    public List<Customer> selectCustomerList(Customer customer);

    /**
     * 新增顾客详情
     * 
     * @param customer 顾客详情
     * @return 结果
     */
    public int insertCustomer(Customer customer);

    /**
     * 修改顾客详情
     * 
     * @param customer 顾客详情
     * @return 结果
     */
    public int updateCustomer(Customer customer);

    /**
     * 删除顾客详情
     * 
     * @param id 顾客详情主键
     * @return 结果
     */
    public int deleteCustomerById(Long id);

    /**
     * 批量删除顾客详情
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteCustomerByIds(Long[] ids);
}
